package com.test.repository;

import com.test.entity.OcExpBaseConfig;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by zhang on 2017/6/24.
 */
public interface OcExpBaseConfigRepository extends JpaRepository<OcExpBaseConfig, String> {

    @Query(value="select o.expressId,o.accessCode,o.checkword,o.expressName,o.httpUrl,o.imgPath from OcExpBaseConfig o where o.expressName=?1")
    public OcExpBaseConfig findByExpressName(String expressName);
}
